#ifndef __NewMath__GameData__
#define __NewMath__GameData__
#include "cocos2d.h"
#include "LevelData.h"
#include "MathData.h"
USING_NS_CC;

enum EMathData
{
	MODE,
	ID_LEVEL,
	QUESTION,
	ANSWER,
	NUM_GHOST_START,
	TIME,
	TYPE,
};



class GameData
{
private:
	static GameData* m_instance;

	void readConfig();
	void readEasy();
	void readNormal();
	void readHard();
public:
	static GameData* getInstance();

	std::map<int, LevelData> easyMode;
	std::map<int, LevelData> normalMode;
	std::map<int, LevelData> hardMode;
	MathData config;

	GameData();
	void initalize();
};

#endif